package com.san.hkhospital.mapper;

import com.san.hkhospital.dto.Medicine1;
import com.san.hkhospital.entity.Medicine;
import com.san.hkhospital.entity.MedicineExample;

import java.util.List;

import com.san.hkhospital.vo.MedicineVo;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName:MedicineMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 *
 */


public interface MedicineMapper {
    long countByExample(MedicineExample example);

    int deleteByExample(MedicineExample example);

    int deleteByPrimaryKey(Integer medId);

    int insert(Medicine record);

    int insertSelective(Medicine record);

    List<Medicine> selectByExample(MedicineExample example);

    Medicine selectByPrimaryKey(Integer medId);

    int updateByExampleSelective(@Param("record") Medicine record, @Param("example") MedicineExample example);

    int updateByExample(@Param("record") Medicine record, @Param("example") MedicineExample example);

    int updateByPrimaryKeySelective(Medicine record);

    int updateByPrimaryKey(Medicine record);

    List<MedicineVo> search(Medicine1 medicine1);
}